package com.sikaryofficial.dataindicator.domain.dto.req;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.sikaryofficial.common.core.annotation.CustomerDateDeserializer;
import com.sikaryofficial.common.core.web.page.PageDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class UserBehaviorDataPageRequest extends PageDomain {

    @ApiModelProperty(value = "查询类型：1-搜索 2-筛选", example = "1")
    private Integer queryType;
    @ApiModelProperty(value = "关键字")
    private String keyWord;

    @ApiModelProperty(value = "ip地区")
    private String ipLocation;

    @ApiModelProperty(value = "user agent")
    private String userAgent;

    @ApiModelProperty(value = "设备")
    private String client;

    @ApiModelProperty(value = "用户信息")
    private String userInfo;

    @ApiModelProperty(value = "开始时间")
    @JsonDeserialize(using = CustomerDateDeserializer.class)
    private Date fromTime;
    @ApiModelProperty(value = "结束时间")
    @JsonDeserialize(using = CustomerDateDeserializer.class)
    private Date toTime;


    @ApiModelProperty(value = "路径")
    private String path;
    @ApiModelProperty(value = "xpath")
    @JsonProperty("xpath")
    private String xPath;
    @ApiModelProperty(value = "来路")
    private String referer;

    /**
     * 事件类型
     */
    @ApiModelProperty(value = "事件类型")
    private String type;
    /**
     * 追踪标识（来源）
     */
    @ApiModelProperty(value = "追踪标识（来源）")
    private String source;

    @ApiModelProperty(value = "是否为注册用户：1-是 0-否")
    private Integer registeredUser;
}
